package com.library.system.domain.vo.datapanel;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.library.system.domain.vo.home.SysHomeLendCountVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Package: com.library.system.domain.vo
 * @ClassName: SysDataPanelLendCountVo
 * @Author: Yin
 * @Date: 11:06
 * @Description: 数据面板借阅 统计 vo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysDataPanelLendBookCountVo {

    /** 年份 / 月份 / 每天 统计 */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;

    /** 借阅数量 （包括续借）*/
    @JsonProperty("value")
    private Long borrow;

    public static SysDataPanelLendBookCountVo empty(String name) {
        return new SysDataPanelLendBookCountVo(null,0L);
    }

}
